﻿using UnityEngine;
using System.Collections;
using UnityEditor;

[CustomEditor(typeof(LevelScript))]
public class LevelScriptEditor : Editor
{
	public override void OnInspectorGUI ()
	{
		LevelScript myLevelScript = target as LevelScript;

		myLevelScript.experence = EditorGUILayout.IntField ("经验", myLevelScript.experence);
		EditorGUILayout.LabelField ("等级", myLevelScript.level.ToString ());
	}	
}
